/**
 * Created by weikexin .
 * description:
 **/
import {HTTP} from '../util/http'

class Message extends HTTP {
    message(params = {}, success) {
        let url = 'topNews/message'
        let data = Object.assign({},
            params,
            {
                userId: wx.getStorageSync('userInfo').user_id || 0,
                size: 20,
                rnd: 666
            })
        this.request({
            url: url,
            data: data,
            success
        })
    }
    // 获取的是信息里面 赞  收藏 粉丝 评论 的数量
    number(success) {
        let url = 'GeneralManagement/selectNotReadNumber'
        this.request({
            url: url,
            newURL: true,
            success
        })
    }
}

export {Message}